fun main() {
    //for
    for (number in 1..5) {
        println(number)
    }
    val listOf = listOf(1, 2, 3)
    for (i in listOf) {
        println(i)
    }
    //while
    var cakes = 0
    while (cakes < 3) {
        println(cakes)
        cakes++
    }
    do {
        println(cakes)
        cakes++
    } while (cakes < 0)
}